<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<input type="hidden" name="orderField" id="order_field" value="${paramMap.orderField}"/>
<input type="hidden" name="orderDirection" id="order_direction" value="${paramMap.orderDirection}"/>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<div  class="tab-pane in active">
	<table class="table table-hover">
		<thead>
			<tr>
				<th>平台名</th>
				<s:sortField name="成交金额"  field="total_amount" queryFunction="queryPlatformDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
				<s:sortField name="募集成功项目数"  field="trade_count" queryFunction="queryPlatformDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="data" items="${dataList}" varStatus="index">
				<tr>
					<td><b class="title">${data.platformName}</b></td>
					<td>${data.totalAmount/10000}万元</td>
					<td>${data.tradeCount}</td>
					<td><a href="<%=path %>/views/data/platform_trade_list.jsp?platformId=${data.platformId}" target="_blank">查看项目</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryPlatformDataList"></p:pagination>
</c:when>
<c:otherwise>
<div  class="tab-pane in active">
	<table class="table table-hover">
		<thead>
			<tr>
				<th>平台名</th>
				<th>成交金额</th>
				<th>募集成功项目数</th>
			</tr>
		</thead>
		<tbody>
				<tr style="text-align: center;">
					<td colspan="3">暂无数据</td>
				</tr>
		</tbody>
	</table>
</div>
</c:otherwise>
</c:choose>